package tmall.domain.entity;

import tmall.common.entity.BaseEntity;

import java.math.BigDecimal;

/**
 * goods
 * @author 
 */
public class Goods extends BaseEntity {
    private Long id;

    /**
     * 商品类别
     */
    private Long categoryId;

    /**
     * 商品名称
     */
    private String goods;

    /**
     * 生产厂家
     */
    private String company;

    /**
     * 商品描述
     */
    private String content;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 库存量
     */
    private Integer store;

    /**
     * 已售出数量
     */
    private Integer num;

    /**
     * 被点击次数
     */
    private Integer clickNum;

    /**
     * 1 新添加 2 在售 3 下架
     */
    private Boolean state;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getGoods() {
        return goods;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStore() {
        return store;
    }

    public void setStore(Integer store) {
        this.store = store;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getClickNum() {
        return clickNum;
    }

    public void setClickNum(Integer clickNum) {
        this.clickNum = clickNum;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", categoryId=" + categoryId +
                ", goods='" + goods + '\'' +
                ", company='" + company + '\'' +
                ", content='" + content + '\'' +
                ", price=" + price +
                ", store=" + store +
                ", num=" + num +
                ", clickNum=" + clickNum +
                ", state=" + state +
                "} " + super.toString();
    }
}